<?php if (!defined('THINK_PATH')) exit(); /*a:2:{s:78:"E:\phpstudy\PHPTutorial\WWW\gdlook/application/index\view\index\indexinfo.html";i:1575699001;s:67:"E:\phpstudy\PHPTutorial\WWW\gdlook\application\index\view\head.html";i:1575425674;}*/ ?>
<html style="font-size: 120px;">
<head>
<meta charset="utf-8">
<meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no, width=device-width">
<!-- 是否启用全屏模式 -->
<meta name="apple-mobile-web-app-capable" content="yes">
<!-- 全屏时状态颜色设置 -->
<meta name="apple-mobile-web-status-bar-style" content="white">
<!-- 禁用电话号码自动识别 -->
<meta name="format-detection" content="telephone=no">
<!--禁止读取本地缓存模板-->
<meta http-equiv="Pragma" contect="no-cache">
<!-- iPhone 启动图标 -->
<link rel="apple-touch-icon" href="img/logo.png">
<!-- Android 启动图标 -->
<link rel="shortcut icon" href="img/logo.png">
<!-- 添加 favicon icon -->
<link rel="shortcut icon" type="image/ico" href="img/favicon.ico">
 <title><?php echo !empty($conf['web_name'])?$conf['web_name']:'wjy'; ?></title> 
<script type="text/javascript">
window.onload=function(){
//设置适配rem
var change_rem = ((window.screen.width > 450) ? 450 : window.screen.width)/375*100;
document.getElementsByTagName("html")[0].style.fontSize=change_rem+"px";
window.onresize = function(){
change_rem = ((window.screen.width > 450) ? 450 : window.screen.width)/375*100;
document.getElementsByTagName("html")[0].style.fontSize=change_rem+"px";
}
}
</script>

<link href="/static/index/css/ionic.css" rel="stylesheet">
<link href="/static/index/css/style.css" rel="stylesheet">
<!-- <script src="/static/index/js/jquery-3.2.1.min.js"></script> -->
<script src="/static/index/js/jquery-1.9.1.min.js"></script>
<script type="text/javascript" src="/static/index/js/touchSlider.js"></script>
<style type="text/css">@charset "UTF-8";[ng\:cloak],[ng-cloak],[data-ng-cloak],[x-ng-cloak],.ng-cloak,.x-ng-cloak,.ng-hide:not(.ng-hide-animate){display:none !important;}ng\:form{display:block;}.ng-animate-shim{visibility:hidden;}.ng-anchor{position:absolute;}</style>
<style>
.ionic_toast {
  z-index: 9999;
}

.toast_section {
  color: #FFF;
  cursor: default;
  font-size: 1em;
  display: none;
  border-radius: 5px;
  opacity: 1;
  padding: 10px 30px 10px 10px;
  margin: 10px;
  position: fixed;
  left: 0;
  right: 0;
  text-align: center;
  z-index: 9999;
  background-color: rgba(0, 0, 0, 0.75);
}

.ionic_toast_top {
  top: 10px;
}

.ionic_toast_middle {
  top: 40%;
}

.ionic_toast_bottom {
  bottom: 10px;
}

.ionic_toast_close {
  border-radius: 2px;
  color: #CCCCCC;
  cursor: pointer;
  display: none;
  position: absolute;
  right: 4px;
  top: 4px;
  width: 20px;
  height: 20px;
}

.toast_close_icon {
  position: relative;
  top: 1px;
}

.ionic_toast_sticky .ionic_toast_close {
  display: block;
}

.ionic_toast_close:active {

}</style>


<script src="/static/index/js/lk/order.js"></script>

<!-- <script type="text/javascript" src="/static/index/js/lk/echarts-all-3.js"></script>
<script type="text/javascript" src="/static/index/js/lk/ecStat.min.js"></script>
<script type="text/javascript" src="/static/index/js/lk/dataTool.min.js"></script>
<script type="text/javascript" src="/static/index/js/lk/china.js"></script>
<script type="text/javascript" src="/static/index/js/lk/world.js"></script>
<script type="text/javascript" src="/static/index/js/lk/api"></script>
<script type="text/javascript" src="/static/index/js/lk/getscript"></script>
<script type="text/javascript" src="/static/index/js/lk/bmap.min.js"></script> -->
<!-- 弹框插件 -->
<script src="/static/layer/layer.js"></script>
<!-- 公共函数 -->
<script src="/static/public/js/function.js"></script>
<script src="/static/public/js/base64.js"></script>
<script type="text/javascript">
  var Base64 = new Base64();


</script>
</head>



<style>
    .scroll-content {
        overflow: scroll
    }

    .swiper-container {
        width: 100%;
        height: 100%;
    }

    .swiper-slide {
        text-align: center;
        font-size: 18px;
        background: #fff;

        /* Center slide text vertically */
        display: -webkit-box;
        display: -ms-flexbox;
        display: -webkit-flex;
        display: flex;
        -webkit-box-pack: center;
        -ms-flex-pack: center;
        -webkit-justify-content: center;
        justify-content: center;
        -webkit-box-align: center;
        -ms-flex-align: center;
        -webkit-align-items: center;
        align-items: center;
        width: 90%;
    }

    .swiper-slide:nth-child(1n) {
        width: 100%;
    }

    .swiper-slide:nth-child(2n) {
        width: 100%;
    }

    body .demo-class .layui-layer-btn0 {
        width: 70%;
    }

    body .demo-class .layui-layer-title {
        height: 54px;
    }

    .sygg ul li {
        width: 25%;
        float: left;
        color: #fff;
        height: 35px;
        font-size: 14px;
        line-height: 35px;
        cursor: pointer;
        text-align: center;
        background-color: #054060;
        border-bottom: 1px solid rgb(41, 44, 49);
    }
</style>

<body ng-app="starter" ng-controller="AppCtrl" class="grade-a platform-browser platform-win32 platform-ready">
    <div id="stitle" class="layui-layer-title" style="padding-left: 45%; cursor: move;height:60px;line-height: 60px;">null</div>

    <ion-nav-bar class="bar-stable headerbar nav-bar-container" nav-bar-transition="ios" nav-bar-direction="none"
        nav-swipe="">

        <!--  弹出框内容 -->

        <div class="canvas-backdrop">
            <div id="sideMenuContainer">
                <div id="Shut_btn">
                    <img src="/static/index/img/Shut.png">
                </div>

                <div class="User_login">
                    <form>
                        <!-- 登录时显示该部分 -->
                        <div class="a_login">
                            <div class="account">
                                <img src="/static/index/img/wallet.png">我的钱包
                            </div>

                            <ul class="bute">
                                <li>姓名：<?php echo !empty($userinfo['nickname'])?$userinfo['nickname']:$userinfo['username']; if($userinfo['otype'] ==
                                    101): ?> (代理商 邀请码：<?php echo $userinfo['uid']; ?>) <?php endif; ?></li>
                                <li>余额：<span>$<?php echo $userinfo['usermoney']; ?></span></li>
                                <li>今日盈亏：<?php echo $all_ploss; ?></li>
                            </ul>


                            <ul class="l_nav">
                                <li onclick="show_user_modal('modal-deposit')">充值</li>
                                <li onclick="show_user_modal('modal-withdraw')">提现</li>
                                <li><a href="<?php echo url('/index/user/index/token/'.$token); ?>">个人中心</a></li>
                                <li><a href="<?php echo Url('/index/index/indexinfo/token/'.$token); ?>">交易</a></li>
                                <li onclick="app_exit()">退出</li>
                                <div style="clear: both;"></div>
                            </ul>
                        </div>


                        <!-- 未登录时显示该部分 -->
                    </form>
                </div>

                <div class="list_box">
                    <div class="tit">
                        <img src="/static/index/img/icon_til.png">为什么是OPTIONCC
                        <ul class="side_list">
                            <li><a href="<?php echo url('login/brand'); ?>">&gt;10年老品牌</a></li>
                            <li><a href="<?php echo url('login/integrity'); ?>">&gt;100%诚信兑付</a></li>
                        </ul>
                    </div>
                </div>

                <div class="list_box">
                    <div class="tit" style="padding-bottom:30px">
                        <img src="/static/index/img/icon_about.png">关于我们
                        <ul class="side_list">
                            <li><a href="<?php echo url('login/contact'); ?>">&gt;联系我们</a></li>
                            <li><a href="<?php echo url('login/clause'); ?>">&gt;条款规则</a></li>
                            <li><a href="<?php echo url('login/payment'); ?>">&gt;付款政策</a></li>
                        </ul>
                    </div>
                </div>

            </div>
        </div>

        <div class="nav-bar-block" nav-bar="active">
            <ion-header-bar class="bar-stable headerbar bar bar-header" align-title="center">
                <!-- <div class="buttons buttons-left" style="transition-duration: 0ms;"></div> -->
                <header class="navbg">
                    <div class="back">
                        <a href="javascript:history.go(-1);">
                            <img src="/static/index/img/back.png">
                        </a>
                    </div>
                    <span class="new_bar" id="sideMenu">
                    <img src="/static/index/img/bar.png">
                    </span>	
                    <h1 class="title">交易</h1>
                </header>
                <div style="width: 100%; height: 150px;position: absolute;top: 60px;background-color: #444;">
                    <div class="swiper-container">
                        <div class="swiper-wrapper">
                            <?php if(is_array($data) || $data instanceof \think\Collection || $data instanceof \think\Paginator): $i = 0; $__LIST__ = $data;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
                            <div class="swiper-slide" data-toggle="modal" data-target="#myModal"
                                onclick="openNotic('<?php echo $vo['id']; ?>','<?php echo $vo['title']; ?>','<?php echo $vo['text']; ?>','<?php echo $vo['create_at']; ?>')">
                                <img src="<?php echo $vo['filepath']; ?>" style="width: 100%;">
                            </div>
                            <?php endforeach; endif; else: echo "" ;endif; ?>
                        </div>

                        <div class="swiper-pagination"></div>
                    </div>
                </div>
                <!-- <div class="title title-center header-item" style="transition-duration: 0ms; transform: translate3d(0px, 0px, 0px);top: 210px;background-color: black">区块链交易所</div> -->
                <div class="title"
                    style="transition-duration: 0ms; transform: translate3d(0px, 0px, 0px);top: 210px;background-color: rgb(38, 40, 52);height: 35px;">
                    <div class="qoute-view-header view-header sygg" id="syg">
                        <ul>
                            <li class="shangpinmingcheng">商品名称</li>
                            <li class="xianjia">现价</li>
                            <li class="zuidi">最低</li>
                            <li class="zuigao">最高</li>
                        </ul>
                    </div>
                </div>


            </ion-header-bar>
        </div>
    </ion-nav-bar>
    <ion-nav-view class="view-container" style="height:calc(100% - 60px);" nav-view-transition="ios" nav-view-direction="enter" nav-swipe="">
        <ion-tabs class="tabs-icon-top navbar pane tabs-bottom tabs-standard" abstract="true" nav-view="active"
            style="opacity: 1; transform: translate3d(0%, 0px, 0px);">
            <!-- <div class="tab-nav tabs" style="bottom: 40px">

        <ion-tab href="#/tab/qoute" class="iconfont icon--6 tabnone"></ion-tab>

        <ion-tab href="#/tab/history/0" class="iconfont icon--7 tabnone"></ion-tab>

        <ion-tab href="#/tab/profile" class="iconfont icon--8 tabnone"></ion-tab>

        <a href="<?php echo Url('/index/index/indexinfo/token/'.$token); ?>"  class="iconfont icon--6 tabnone tab-item tab-item-active" style=""><span class="tab-title ng-binding" >区块链</span></a>
        <a href="<?php echo url('/index/order/hold/token/'.$token); ?>" class="iconfont icon--7 tabnone tab-item" style=""><span class="tab-title ng-binding jiaoyijilu" ></span></a>
        <a href="<?php echo url('/index/user/index/token/'.$token); ?>"  class="iconfont icon--8 tabnone tab-item" style=""><span class="tab-title ng-binding" >个人账户</span></a>

    </div> -->
            <ion-nav-view name="tab-qoute" class="view-container tab-content" nav-view="active"
                nav-view-transition="ios" nav-view-direction="none" nav-swipe="">
                <ion-view view-title="" hide-nav-bar="false" class="pane" state="tab.qoute" nav-view="active"
                    style="opacity: 1; transform: translate3d(0%, 0px, 0px);">
                    <ion-content style="top: 0px;"
                        class="content-background scroll-content ionic-scroll scroll-content-false  has-header has-tabs"
                        scroll="false">

                        <div class="slide-qoute slider" delegate-handle="slide-qoute"
                            on-slide-changed="slide_change($index)" show-pager="false"
                            style="visibility: visible;top: 150px;height: 100%">
                            <div class="slider-slides" ng-transclude="" style="width: 100%;">
                                <!-- ngRepeat: c in category_list -->
                                <ion-slide ng-repeat="c in category_list" class="slider-slide" data-index="0"
                                    style="width: 100%; left: 0px; transition-duration: 300ms; transform: translate(0px, 0px) translateZ(0px);">
                                    <div class="qoute-view">
                                        <div class="qoute-view-header" id="ss">
                                            <ul>
                                                <li class="shangpinmingcheng"></li>
                                                <li class="xianjia"></li>
                                                <li class="zuidi"></li>
                                                <li class="zuigao"></li>
                                            </ul>
                                        </div>
                                        <div style="overflow: scroll;height: 90%">
                                            <div class="qoute-view-content" style="height: 100%">
                                                <ion-scroll class="scroll-view ionic-scroll scroll-y">
                                                    <div class="scroll"
                                                        style="transform: translate3d(0px, 0px, 0px) scale(1);">

                                                        <!-- <?php if(is_array($pro) || $pro instanceof \think\Collection || $pro instanceof \think\Paginator): $i = 0; $__LIST__ = $pro;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?> -->
                                                        <ul onclick="parent.location='<?php echo url('goods/goods',array('pid'=>$vo['pid'],'token'=>$token)); ?>';"
                                                            id="pid<?php echo $vo['pid']; ?>">
                                                            <li>
                                                                <a href="javascript:;" class="ng-binding prtitle"></a>
                                                            </li>
                                                            <li>
                                                                <a href="javascript:;"
                                                                    class="ng-binding rise-value now-value">

                                                                </a>
                                                            </li>
                                                            <li>
                                                                <a href="javascript:;" class="ng-binding rise rise-low">

                                                                </a>
                                                            </li>
                                                            <li>
                                                                <a href="javascript:;"
                                                                    class="ng-binding rise rise-high">

                                                                </a>
                                                            </li>
                                                        </ul>
                                                        <!-- <?php endforeach; endif; else: echo "" ;endif; ?> -->

                                                    </div>

                                                    <!--<div class="order-p" id="J_order" style="display:none; bottom: 40px">-->
                                                    <!--<div class="order-item">-->
                                                    <!--<i class="iconfont icon&#45;&#45;5 rujin" style="color:#ecb540"></i> <span class="order-phone" style="color:#999"></span> &nbsp;<span class="order-rs" style="color:red"></span>-->
                                                    <!--</div>-->
                                                    <!--</div>-->

                                                </ion-scroll>
                                            </div>
                                        </div>
                                    </div>
                                </ion-slide>


                            </div>
                        </div>
                    </ion-content>
                </ion-view>
            </ion-nav-view>
        </ion-tabs>
    </ion-nav-view>
    <div class="order-p" id="J_order" style="display:none; bottom: 70px; z-index: 9999">
        <div class="order-item">
            <i class="iconfont icon--5 rujin" style="color:#ecb540"></i> <span class="order-phone"
                style="color:#999"></span> &nbsp;<span class="order-rs" style="color:red"></span>
        </div>
    </div>

    <div class="modal-backdrop hide modal-deposit">
        <div class="modal-backdrop-bg"></div>
        <div class="modal-wrapper" ng-transclude="">
            <ion-modal-view class="order-modal modal slide-in-up ng-leave ng-leave-active model-bank-tab">
              <!--todo 头部样式-->
              <header class="navbg">
                <div class="back" onclick="hide_user_modal('modal-deposit')">
                  <a>
                    <img src="/static/index/img/back.png">
                  </a>
                </div>
                <!-- <span class="new_bar" id="sideMenu">
                  <img src="/static/index/img/bar.png">
                </span>	 -->
                <h1 class="title">用户入金</h1>
              </header>
                <div class="pay_code_area" style="display: none">
                    <div>
                        <div class="pay_code_img">
  
                        </div>
  
                        <p>扫描二维码支付</p>
                        <p><a href="">充值成功点击刷新</a></p>
                        <p><a href="javascript:;" onclick="pay_code_area(0)">关闭</a></p>
  
                    </div>
                </div>
                <ion-content id="in_money_content" class="scroll-content ionic-scroll  has-header"><div class="scroll" style="transform: translate3d(0px, 0px, 0px) scale(1);">
                    <header>
                        <ul>
  
                            <?php if(is_array($payment) || $payment instanceof \think\Collection || $payment instanceof \think\Paginator): $i = 0; $__LIST__ = $payment;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
                            <li class="pay_channel" >
  
                                <label class="pay_weixin item item-radio item item-radio" name="pay_type" onclick="check_payid('<?php echo $vo['pay_conf_arr']['name']; ?>')"  value="<?php echo $vo['pay_conf_arr']['name']; ?>">
                                    <input type="radio" name="pay_type" class="ng-pristine ng-untouched ng-valid ng-not-empty" value="<?php echo $vo['pay_conf_arr']['name']; ?>">
                                    <div class="radio-content">
                                        <div class="item-content disable-pointer-events" >
                                            <div class="pay_bank_list_header">
                                                <div class="kuang"></div>
  
                                                <?php if($vo['pay_conf_arr']['name'] == 'alipay' || $vo['pay_conf_arr']['name'] == 'qtb_alipay' || $vo['pay_conf_arr']['name'] == 'AlipayCS' || $vo['pay_conf_arr']['name'] == 'AlipayPAZH'): ?>
                                                <i class="pay_alipay_bg"></i>
                                                <article>
                                                    <p class="pay_alipay">
                                  <span class="iconfont icon-zhifubao">
                                  <?php elseif($vo['pay_conf_arr']['name'] == 'wxpay' ||  $vo['pay_conf_arr']['name'] == 'qbt_pay_wxpay' ||  $vo['pay_conf_arr']['name'] == 'WeixinBERL' ||  $vo['pay_conf_arr']['name'] == 'Weixin'): ?>
                                  <i class="pay_green_bg"></i>
                                  <article>
                                                    <p class="pay_green">
                                  <span class="iconfont icon-weixin">
                                  <?php else: ?>
                                  <i class="pay_yinlian_bg"></i>
                                  <article>
                                                    <p class="pay_yinlian">
                                  <span class="iconfont icon--19">
                                  <?php endif; ?>
  
  
                                      </span><span class="ng-binding"><?php echo $vo['pay_name']; ?></span></p>
                                                    <p  class="ng-hide"><span class="iconfont "></span><span class="ng-binding"></span></p>
                                                </article>
                                            </div>
                                        </div>
                                        <i class="radio-icon disable-pointer-events icon ion-checkmark"></i>
                                    </div>
                                </label>
  
                                <div  class="pay_bank_list_content ng-hide">
                                    <ion-scroll style="height: 100%;" scrollbar-y="true" scrollbar-x="false" class="scroll-view ionic-scroll scroll-y">
                                        <div class="scroll">
                                            <ul>
                                            </ul>
                                        </div>
                                        <div class="scroll-bar scroll-bar-v">
                                            <div class="scroll-bar-indicator scroll-bar-fade-out"></div>
                                        </div>
                                    </ion-scroll>
                                </div>
  
                            </li>
                            <?php endforeach; endif; else: echo "" ;endif; ?>
  
                        </ul>
                    </header>
                    <div class="out_money_content">
                        <article>
                  <span>
                      <i class="iconfont icon--5"></i>
                      充值金额：
                  </span>
                            <input type="number" placeholder="请输入金额" required="" value="100" class="ng-pristine ng-untouched ng-valid ng-not-empty ng-valid-required bpprice">
                        </article>
                        <section class="ng-binding"><!-- 单次充值至少￥99起，最多￥20000 --></section>
                        <footer>
                            余额：<span class="ng-binding"><?php echo $userinfo['usermoney']; ?></span>
  
                            <!-- 手续费：<span ng-show="money_fee.inmoney_fee_type == 0" class="ng-binding">0%</span>
                            <span ng-show="money_fee.inmoney_fee_type == 1" class="ng-binding ng-hide">￥0</span>
                            实际到账：<span ng-show="money_fee.inmoney_fee_type == 0" class="ng-binding">100.00</span> -->
  
                        </footer>
                        <button class="newbutton outmoneybtn reg_btn"  onclick="submit_deposit()">确认充值</button>
                    </div>
                </div><div class="scroll-bar scroll-bar-v"><div class="scroll-bar-indicator scroll-bar-fade-out" style="transform: translate3d(0px, 0px, 0px) scaleY(1); height: 0px;"></div></div></ion-content>
            </ion-modal-view></div></div>
    <div class="modal-backdrop hide modal-withdraw">
        <div class="modal-backdrop-bg"></div>
        <div class="modal-wrapper" ng-transclude="">
            <ion-modal-view class="order-modal modal slide-in-up ng-leave ng-leave-active">
                 <!--todo 头部样式-->
              <header class="navbg">
                  <div class="back" onclick="hide_user_modal('modal-withdraw')">
                    <a>
                      <img src="/static/index/img/back.png">
                    </a>
                  </div>
                  <!-- <span class="new_bar" id="sideMenu">
                    <img src="/static/index/img/bar.png">
                  </span>	 -->
                  <h1 class="title">用户出金</h1>
                </header>
                <ion-content class="out_money_content scroll-content ionic-scroll  has-header"><div class="scroll" style="transform: translate3d(0px, 0px, 0px) scale(1);">
  
                    <?php if(!isset($mybank)): ?>
                    <header class="ifnone_add_bank"  onclick="go_add_bank()">
                        <p>+</p>
                        <p>添加银行卡</p>
                    </header>
                    <div class="scroll" style="transform: translate3d(0px, 0px, 0px) scale(1);">
                        <?php else: ?>
                        <div  class="cash">
                            <header class="coldbg hotbg"  style="">
                                <p class="ng-binding"><?php echo $mybank['bank_nm']; ?></p>
                                <p class="ng-binding">**** **** **** <?php echo $sub_bankno; ?></p>
                                <i class="iconfont red"><?php echo substr($mybank['bank_nm'],0,3); ?></i>
                            </header>
  
                            <article>
                  <span>
                      <i class="iconfont icon--4"></i>
                      提现金额：
                  </span>
                                <input type="number" placeholder="请输入出金金额" ng-model="outAmount.outamount"  class="cash-price ng-pristine ng-untouched ng-valid ng-not-empty ng-valid-required">
                            </article>
                            <section  class="ng-binding">单次提现金额至少￥<span class="cash_min" attrmax="<?php echo $conf['cash_max']; ?>"><?php echo $conf['cash_min']; ?></span></section>
                            <footer>
                                余额：<span class="ng-binding"><?php echo $userinfo['usermoney']; ?></span>
                                手续费：<span  class="ng-binding reg_par" attrdata="<?php echo $conf['reg_par']; ?>"><?php echo $conf['reg_par']; ?>%</span>
                                实际到账：<span  class="ng-binding true_price" style="display:none"></span>
                            </footer>
                            <button class="newbutton outmoneybtn"  onclick="out_withdraw()">确认出金</button>
                        </div>
                        <?php endif; ?>
                    </div>
  
                </div><div class="scroll-bar scroll-bar-v"><div class="scroll-bar-indicator scroll-bar-fade-out" style="transform: translate3d(0px, 0px, 0px) scaleY(1); height: 0px;"></div></div></ion-content>
            </ion-modal-view></div></div>
            <script src="/static/index/js/lk/user.js"></script>
            <script src="/static/index/js/lk/jquery.qrcode.js"></script>
            <script src="/static/index/js/lk/utf.js"></script>        
    <script>
        var order_list;
        var order_index = 0;
        var max_rand = 50;

        function order_show() {
            if (order_list != null && $("#J_order").is(":hidden")) {
                if (order_index >= max_rand) {
                    order_index = 0;
                }
                $("#J_order").find(".order-phone").html(order_list[order_index]['phone']);
                $("#J_order").find(".order-rs").html('赢利+' + order_list[order_index]['price'] + '元');
                $("#J_order").show();
                window.setTimeout(function () {
                    $("#J_order").hide();
                }, 1500);
                order_index++;
            }
        }

        function order_start() {
            var rand = Math.ceil(Math.random() * 100);
            if (rand >= 80) {
                if (order_list != null) {
                    order_show();
                }
            }
        }
        $(document).ready(function () {
            $.ajax({
                type: "GET",
                contentType: "application/json;charset=utf-8",
                url: "/index/index/ajax_order",
                data: null,
                dataType: "json",
                complete: function () {},
                success: function (result) {
                    order_list = result;
                },
                error: function (result, status) {}
            });
            /*
            $.get("/index/index/ajax_order",null,function(data){
                order_list = data;
            });
            */
            window.setInterval(order_start, 1000);
        });
    </script>
    <script>
        var charturl = '<?php echo url("getchart"); ?>';
        $.get(charturl, function (_res) {

            var res = jQuery.parseJSON(Base64.decode(_res));

            $.each(res, function (k, v) {
                $('.' + k).html(v);
            })
        })
    </script>
</body>

</html>

<script src="/static/index/js/lk/index.js">
    ajaxpro()
</script>
<script src="/static/index/js/swiper.min.js"></script>
<script>
    var swiper = new Swiper('.swiper-container', {
        slidesPerView: 'auto',
        centeredSlides: true,
        // spaceBetween: 13,
        autoplay: {
            delay: 2500,
            disableOnInteraction: false,
        },
        pagination: {
            el: '.swiper-pagination',
            clickable: true,
        },
    });
</script>
<script type="text/javascript">
    function openNotic(id, title, content, time) {
        title = title + '<span style="position: absolute;top: 20px;left: 30%;">' + time + '</span>'
        layer.open({
            title: [title, ' padding-left: 45%;'],
            content: content,
            area: ['80%', '400px'],
            btnAlign: 'c',
            offset: '100px',
            skin: 'demo-class'
        });
    }
</script>

<script type="text/javascript">
    $(function () {
        // 点击汉堡包          
        $("#sideMenu").click(function (e) {

            console.log("234567")
            if ($("#sideMenuContainer").hasClass("allhide")) {
                $("#sideMenuContainer").animate({
                    right: -295
                }, "slow");
                $("#sideMenuContainer").removeClass("allhide");
                return;
            }

            e.stopPropagation();
            $("#sideMenuContainer").animate({
                right: 0
            }, "slow");
            $("#sideMenuContainer").addClass("allhide");
        })

        //点击关闭 X
        $("#Shut_btn").click(function (e) {
            if ($("#sideMenuContainer").hasClass("allhide")) {
                $("#sideMenuContainer").animate({
                    right: -295
                }, "slow");
                $("#sideMenuContainer").removeClass("allhide");
                return;
            }
        })

        //点击空白的地方
        $(document).click(function () {
            if ($("#sideMenuContainer").hasClass("allhide")) {
                $("#sideMenuContainer").animate({
                    right: -295
                }, "slow");
                $("#sideMenuContainer").removeClass("allhide");
                $(".canvas-backdrop").fadeOut();
            }
        });

        $("#sideMenu").click(function () {
            $(".canvas-backdrop").fadeIn();
        });

        $("#Shut_btn").click(function () {
            $(".canvas-backdrop").fadeOut();
        });
    })
</script>